
#ifndef COMMON_H
#define COMMON_H

#include <QImage>
#include <QDebug>
#include <QFileDialog>
#include <QColorDialog>
#include <QMessageBox>
#include <QHash>
// opencv
#include "opencv/highgui.h"
#include "opencv/cxcore.h"
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/photo.hpp"
// opencv_contrib
#include <opencv2/photo.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/calib3d.hpp>

cv::Mat image2Mat(QImage image);    // 声明Qimage 转 cv::Mat 函数
QImage mat2Image(cv::Mat mat);      // 声明cv::Mat 转 QImage 函数

#endif // COMMON_H

